package com.yanqu.road.entity.activity.tonbingchannel.data;


import java.util.LinkedList;

public class ChannelTonBingBattlefieldPart {

    // ID
    private int partId;
    // 队伍
    private LinkedList<ChannelTonBingBattlefieldTeam> atkList = new LinkedList<>();
    private LinkedList<ChannelTonBingBattlefieldTeam> defList = new LinkedList<>();
    // 计数
    private int atkDeadCount;
    private int defDeadCount;
    private int winType; // 0未开打、1守赢、2攻赢

    /**
     * 浅拷贝
     */
    public ChannelTonBingBattlefieldPart shallowCopy() {
        ChannelTonBingBattlefieldPart part = new ChannelTonBingBattlefieldPart();
        part.setPartId(partId);
        part.setAtkList(new LinkedList<>(atkList));
        part.setDefList(new LinkedList<>(defList));
        part.setAtkDeadCount(atkDeadCount);
        part.setDefDeadCount(defDeadCount);
        part.setWinType(winType);
        return part;
    }

    public int getWinType() {
        return winType;
    }

    public void setWinType(int winType) {
        this.winType = winType;
    }

    public int getAtkDeadCount() {
        return atkDeadCount;
    }

    public void setAtkDeadCount(int atkDeadCount) {
        this.atkDeadCount = atkDeadCount;
    }

    public int getDefDeadCount() {
        return defDeadCount;
    }

    public void setDefDeadCount(int defDeadCount) {
        this.defDeadCount = defDeadCount;
    }

    public int getPartId() {
        return partId;
    }

    public void setPartId(int partId) {
        this.partId = partId;
    }

    public LinkedList<ChannelTonBingBattlefieldTeam> getAtkList() {
        return atkList;
    }

    public void setAtkList(LinkedList<ChannelTonBingBattlefieldTeam> atkList) {
        this.atkList = atkList;
    }

    public LinkedList<ChannelTonBingBattlefieldTeam> getDefList() {
        return defList;
    }

    public void setDefList(LinkedList<ChannelTonBingBattlefieldTeam> defList) {
        this.defList = defList;
    }
}
